import { Compiler, WebpackPluginFunction } from 'webpack';
import devServerConfig from '../config/dev.config';
class DevPlugin {
  constructor() {}
  apply: WebpackPluginFunction = function (compiler: Compiler) {
    compiler.hooks.done.tap('DevPlugin', () => {
      console.log(`Start!!\nClick: http://localhost:${devServerConfig.port}`);
    });
  };
}

export default DevPlugin;
